import http from "@/utils/vmeitime-http/index.js";
export const getGoodsList = (data) => http.get("/applet_user/goods/getGoods", data);
export const setGoodsStatus = (data) => http.post("/applet_user/goods/putaway", data);
export const getGoodsDetail = (data) => http.get("/applet_user/goods/getInfo", data);    

// 获取商品规格列表
export const getGoodsSpecList = (data) => http.get("/applet_user/goods/getGoodsSku", data);

// 代客下单
export const proxyStoreOrder = (data) => http.post("/applet_user/order/placeOrder", data);


// 设置总后台的返点比例
export const setReturnPointRatio = (data) => http.post("/applet_user/system_goods/return_point_ratio", data)
 // 获取总后台的返点比例
export const getReturnPointRatio = (data) => http.get("/applet_user/system_goods/return_point_ratio", data)
 // 设置总后台的折扣
export const setDiscount = (data) => http.post("/applet_user/system_goods/set_set_discount", data)
export const getFromAdminDiscount = (data) => http.get("/applet_user/system_goods/get_set_discount", data)
  // 设置总后台的通用折扣
export const setGeneralDiscount = (data) => http.post("/applet_user/system_goods/set_goods_discount", data)
export const getFromAdminGeneralDiscount = (data) => http.get("/applet_user/system_goods/get_goods_discount", data)

// 设置品牌商品排序
export const setBrandGoodsSort = (data) => http.post("/applet_user/system_goods/setSort", data)
